
<div class="row">
	<div class="col-lg-12">
		<ol class="breadcrumb">
			<li><a><i class="fa fa-home mrg-r-sm"></i>首页</a>
			</li>
			<li class="active"><span>备忘录列表</span>
			</li>
		</ol>
		<div class="filter-block pull-left">
				<!--搜索框 Start1-->
				<div class="form-group pull-left">
					<input type="text" class="form-control" ng-model="search.start_time" id="start_time" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"  placeholder="请输入开始时间">
				</div>
				<div class="form-group pull-left">
					~
				</div>
				<div class="form-group pull-left">
					<input type="text" class="form-control" ng-model="search.end_time" id="end_time"  onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" placeholder="请输入结束时间">
				</div>
				<div class="form-group pull-left">
					<input type="text" class="form-control" ng-model="search.title"  placeholder="请输入标题" >
				</div>
				<div class="form-group pull-left">
					<input type="text" class="form-control" ng-model="search.context"  placeholder="请输入内容">
				</div>
				
				<!--搜索框 End-->
				<a class="btn btn-success pull-left form-group" ng-click="searchCms(search)">
					 搜索
				 </a>
				<a  href="#/cms/edit/0" class="btn btn-primary pull-right">
					<i class="fa fa-plus-circle fa-lg"></i> 添加
				</a>
		</div>
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<div class="main-box no-header clearfix">
			<div class="main-box-body clearfix">
				<div class="table-responsive">
					<table class="table user-list table-hover">
						<thead>
							<tr>
								<th class="text-center">标题</th>
            					<th class="text-center">内容</th>
								<th class="text-center">时间</th>
								<th class="text-center">作者</th>
								<th class="text-center">类型</th>
								<th class="text-center">操作</th>
							</tr>
						</thead>
						<tbody>
							 <tr ng-repeat="item in list" >
					            <td class="text-center">{{item.title}}</td>
					            <td class="text-center">{{item.content}}</td>
					            <td class="text-center">{{item.create_time}}</td>
					            <td class="text-center">{{item.username}}</td>
					            <td class="text-center">{{item.type}}</td>
					            <td class="text-center">
									<a href="#/cms/edit/{{item.id}}" class="table-link">
										<span class="fa-stack">

										<i class="fa fa-square fa-stack-2x"></i>
										
										<i class="fa fa-pencil fa-stack-1x fa-inverse"></i>
										
										</span>
									</a>
									<a  ng-click="delete(item.id)" class="table-link danger">
										<span class="fa-stack">
										<i class="fa fa-square fa-stack-2x"></i>
										<i class="fa fa-trash-o fa-stack-1x fa-inverse"></i>
										</span>
					            </td>
        					</tr>
						</tbody>
					</table>
				</div>
				<ul class="pagination pull-right">
							<li><a >总条数：{{count}}</a></li>
							<li><a >总页数：{{totalPage}}</a></li>
					        <li><a ng-click="changePage(1)">首页</a></li>
					        <li><a ng-show="currentPage>1" ng-click="changePage(currentPage-1)"><i class="fa fa-chevron-left"></i></a></li>
					        <!--<li><span ng-show="frontdotShow">…</span></li>-->
					        <li ng-repeat="item in pageList" ng-click="changePage(item.number)" class="{{item.active}}"><a>{{item.number}}</a></li>
					        <!--<li><span ng-show="backdotShow">…</span></li>-->
					        <li><a ng-show="currentPage<totalPage" ng-click="changePage(currentPage+1)"><i class="fa fa-chevron-right"></i></a></li>
					        <li><a ng-click="changePage(totalPage)">尾页</a></li>
					    </ul>
			</div>
		</div>
	</div>
</div>